package com.siashan.toolkit.oss.aliyun.core;

import com.siashan.toolkit.oss.core.OssConfiguration;
import lombok.extern.slf4j.Slf4j;

/**
 * 阿里云oss配置文件
 *
 *
 * @author siashan
 * @since v1.0.1
 */
@Slf4j
public class AliyunOssConfiguration {

    private static OssConfiguration configuration = OssConfiguration.getInstance();

    /**
     * 获取域名配置
     *
     * @return 域名
     */
    public static String getDomain() {
        return configuration.getProperty("siashan.oss.aliyun.config.domain");
    }

    /**
     * 获取路径前缀
     *
     * @return 路径前缀
     */
    public static String getPrefix() {
        return configuration.getProperty("siashan.oss.aliyun.config.prefix");
    }

    /**
     * endPoint
     *
     * @return endPoint
     */
    public static String getEndPoint() {
        return configuration.getProperty("siashan.oss.aliyun.config.endPoint");
    }

    /**
     * accessKeyId
     *
     * @return accessKeyId
     */
    public static String getAccessKeyId() {
        return configuration.getProperty("siashan.oss.aliyun.config.accessKeyId");
    }

    /**
     * accessKeySecret
     *
     * @return accessKeySecret
     */
    public static String getAccessKeySecret() {

        return configuration.getProperty("siashan.oss.aliyun.config.accessKeySecret");
    }

    /**
     * bucketName
     *
     * @return bucketName
     */
    public static String getBucketName() {
        return configuration.getProperty("siashan.oss.aliyun.config.bucketName");
    }

}
